# import os

# file_path = '/Users/wolfan/Desktop/WolfWorkFile/DevOps/CodeDev/PythonProject/PythonSpider/Python_PeiQi_learn/Func_learn'
# res = os.path.exists(file_path)
# print(res)


# NAME = [11,22]

# def func():
#     global NAME
#     NAME.append(999)
#     print(NAME)

# print(NAME)
# func()
# print(NAME)


# def func():
#     return 123

# v1 = 999

# data_list = [1,2,"武沛齐",v1, func, func, func, func(), func() ]

# data_list[4] # 函数
# m1 = data_list[4]()

# data_list[5] # 函数
# m2 = data_list[5]()

# data_list[6] # 函数
# m3 = data_list[6]()

# data_list[7] # 123
# data_list[8] # 123



def send_sms():
    print("发送短信报警")
    
def send_email():
    print("发送邮件报警")
    
def send_dingding():
    print("发送钉钉报警")
    
def send_wechat():
    print("发送微信报警")

    
func_list = [ send_sms, send_email, send_dingding, send_wechat ]
for item in func_list:
    item()
